import request from "@/utils/request";
import {
  uploadDomain
} from '@/configs/env'
/**
 * 七牛云图片上传
 * @param data
 */
// 注册方法
export function uploadImg(data) {
  return request({
    url: uploadDomain,
    headers: {
      'content-type': 'multipart/form-data',
    },
    method: 'post',
    data: data
  })
}

export const getUploadToken = () => request({
  url: 'common/api/common/getOssSignature',
  method: "get",
});